libxl: suspend: Reorg domain_suspend_callback_common
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 4 Dec 2013 14:58:10 +0000 (14:58 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 17 Mar 2014 15:54:00 +0000 (15:54 +0000)
commit376f564f123eba262e98c41fbaf4041aaea1f5b1
tree31b28892541c203d89a3ec04d611716fee14d6a4
parent9e816e079a7f76fa3ba2eedb8ab8e5df4041982f
libxl: suspend: Reorg domain_suspend_callback_common

Make domain_suspend_callback_common more callback-oriented:

* Turn the functionality behind the goto labels "err" and
  "guest_suspended" into functions which can be called just before
  "return".

* Deindent the "issuing %s suspend request via XenBus control node"
  branch; it is going to be split up into various functions as the
  xenstore work becomes callback-based.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dom.c